﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DalGen.Entity
{
    public class ETableInfo
    {
        public string Type { get; set; }
        //public string ColumnName { get; set; }
        public string Remark { get; set; }
        public string DbType { get; set; }
        //public string MaxLength { get; set; }
        public bool Select { get; set; }
        //public bool Identity { get; set; }

        /// <summary>
        /// 列编号
        /// </summary>
        public int ColumnID { get; set; }

        /// <summary>
        /// 是否主键
        /// </summary>
        public bool PrimaryKey { get; set; }
        /// <summary>
        /// 列名
        /// </summary>
        public string ColumnName { get; set; }

        /// <summary>
        /// 默认值
        /// </summary>
        public string Default { get; set; }

        /// <summary>
        /// 系统类型
        /// </summary>
        public string SystemTypeName { get; set; }

        /// <summary>
        /// 精确
        /// </summary>
        public int Precision { get; set; }

        /// <summary>
        /// 小数位数
        /// </summary>
        public int Scale { get; set; }

        /// <summary>
        /// 长度
        /// </summary>
        public int MaxLength { get; set; }

        /// <summary>
        /// 是否可以为空
        /// </summary>
        public bool Nullable { get; set; }

        /// <summary>
        /// 是否GUID
        /// </summary>
        public bool RowGUIDCol { get; set; }

        /// <summary>
        /// 是否自增
        /// </summary>
        public bool Identity { get; set; }

        /// <summary>
        /// 是否公式列
        /// </summary>
        public bool Computed { get; set; }

        /// <summary>
        /// 是否XML文件
        /// </summary>
        public bool XmlDocument { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 验证规则
        /// </summary>
        public string Rule { get; set; }
    }
}
